<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加书籍</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.2/dist/css/bootstrap.min.css" integrity="sha384-xOolHFLEh07PJGoPkLv1IbcEPTNtaed2xpHsD9ESMhqIYd0nLMwNLD69Npy4HI+N" crossorigin="anonymous">


</head>
<body>

<div class="container">
  <h1>添加书籍的管理页面</h1>
  <hr>
  <h2>添加书籍</h2>

  <form action="#" th:action="@{/addBook}" th:object="${book}" method="POST">

    <input type="text" th:field="*{name}" placeholder="书名" class="form-control mb-4 col-4">


    <input type="text" th:field="*{author}" placeholder="作者" class="form-control mb-4 col-4">


    <input type="text" th:field="*{publisher}" placeholder="出版社" class="form-control mb-4 col-4">


    <input type="text" th:field="*{bookNumber}" placeholder="书籍编号" class="form-control mb-4 col-4">


    <input type="text" th:field="*{bookType}" placeholder="书记种类" class="form-control mb-4 col-4">


    <input type="text" th:field="*{price}" placeholder="销售价格" class="form-control mb-4 col-4">

    <button type="submit" class="btn btn-info col-2">需要添加的书籍</button>
  </form>

  <hr>
  <a th:href="@{/}">返回列表</a>



</div>





</body>
</html>